package com.pzh.logistics.pojo.form;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
public class UserRegisterForm {

    private Integer userId;

    @NotNull
    @Size(min = 3, max = 15, message = "用户名长度需为6~15")
    private String username;

    @NotNull
    @Size(min = 3, max = 32, message = "密码长度最短为3")
    private String password;

    @NotNull
    @Size(min = 11, max = 11, message = "手机号格式错误")
    private String phone;

}
